<el-dialog :close-on-click-modal="false"  :close-on-press-escape="false"  class="dialogStyleBase" :title="type=='batch'?'批量修改':'修改'" width="500px"
    :visible.sync="mixinEdit_editVisible" :before-close="function(){mixinEdit_editBoxClose('editForm')}" append-to-body>

    <div class="dialogStyleBaseBox" v-loading="loading">
        <el-form ref="editForm" :model="form" label-width="200px" label-position="left">
            <el-form-item label="折扣方式">
                <el-radio-group v-model="form.discountType" @change="validate">
                    <el-radio :label="1">打折</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item label="销售价" v-if="hasPrice">
                <el-input v-model="form.minSalePrice" disabled></el-input>
            </el-form-item>
            <el-form-item label="成本价" v-if="hasPrice">
                <el-input v-model="form.minOriginalPrice" disabled></el-input>
            </el-form-item>
            <el-form-item label="折扣" prop="discountValue"
                :rules="[{trigger: ['blur', 'change'] ,validator:function(rule, value, callback){validator(rule, value, callback)}}]">
                <el-input v-model="form.discountValue">
                    <div slot="append">折</div>
                </el-input>
            </el-form-item>
        </el-form>
    </div>

    <div slot="footer">
        <div class="btns">
            <el-button :disabled="loading" @click="mixinEdit_editBoxClose('editForm')">取 消</el-button>
            <el-button :disabled="loading" type="primary" @click="submit">确定</el-button>
        </div>
    </div>
</el-dialog>